{%include file="index.header.tpl.php"%}
{%include file="index.left.tpl.php"%}
  <!--主要内容开始-->
  <div class="content-wrapper">
    <section class="content">
      <div class="row">
        <section class="col-lg-12 connectedSortable">
         <div class="box box-default box-solid">
                <div class="box-header with-border">
                    <span class="fa fa-table" style="float:left; font-size:18px; margin-top:2px; color:#3c8dbc;" ></span>
                    <p class="box-title">往期教师值日表 {%$semester_data.semester_xname%}{%$semester_data.semester_name%}{%$start_time%}</p>
                </div>
                <div class="box-body">
                       <!--搜索开始-->
						<form name="myform" method="get" action="">

                        <div class="col-sm-3 form-group">
							  <label for="inputPassword3" class="col-md-4 control-label text-right" style="padding-right:0; padding-left:0; font-weight:500;">
								  生效日期：
							  </label>
							  <div class="input-group col-md-8 col-sm-12 col-xs-12">
								    <select class="form-control" name="box_id">
                                            <option value="0"> 请选择</option>
									{%foreach from=$start_lists key=key item=value%}
                                            <option value="{%$value%}" {%if $value==$box_id%}selected{%/if%}> {%$key%}</option>
									{%/foreach%}
                                    </select> 
							  </div> 
				        </div>
						<input type="hidden" name="a" value="duty.list">
                        <button type="submit" class="btn btn-primary">搜 索</button>
						</form>
                        <!--搜索结束-->
                     <table class="table table-bordered table-striped" id="mytable">   
                          <thead>
                             <tr>
                                <td rowspan="2">地点</td>
								{%foreach from=$week_lists key=key item=value%}
								<td colspan="2" align="center">{%$value%}</td>
								{%/foreach%}								
							 </tr>
                             <tr>
								{%foreach from=$week_lists key=key item=value%}								
                                <td>上午</td>
                                <td>下午</td>
								{%/foreach%}									
							 </tr>
                        </thead>
							 {%foreach from=$data_lists key=key item=value%}
                             <tr>
							    <td>{%$value.duty_area%}</td>
								{%foreach from=$value.duty_data key=k item=v%}
									{%foreach from=$v key=t item=s%}
									 <td>{%$s%}</td>
									{%/foreach%}
								{%/foreach%}    
							 </tr>
							 {%/foreach%}
						 </table>     	   
				    </div><!--box-body --> 
             </div><!--box box-default box-solid-->
          </section>   
        </div><!--row-->
    </section>
 </div>
  <!--主要内容结束-->
  {%include file="index.footer.tpl.php"%}

